using System;
using System.Collections.Generic;
using System.Text;

namespace WbsEditor
{
    //public delegate void WbsEventHandler(object sender, WbsEventArgs e);

    public class WbsEventArgs : EventArgs
    {
        public WbsEventArgs(WbsNode node)
        {
            _wbsNode = node;
        }

        private WbsNode _wbsNode;
        public WbsNode WbsNode
        {
            get
            {
                return _wbsNode;
            }
        }
    }

    public delegate void TfsConnectEventHandler(object sender, TfsConnectEventArgs e);

    public class TfsConnectEventArgs : EventArgs
    {
        public TfsConnectEventArgs()
        {
        }

        private bool _hasHandledConnect;
        public bool HasHandledConnect
        {
            get { return _hasHandledConnect; }
            set { _hasHandledConnect = value; }
        }
    }

    public delegate void WbsLengthyOperationEventHandler(object sender, WbsLengthyOperationEventArgs e);

    public class WbsLengthyOperationEventArgs : EventArgs 
    {
        public WbsLengthyOperationEventArgs(WbsNode node, int count)
        {
            _wbsNode = node;
            _count = count;
        }

        private WbsNode _wbsNode;
        public WbsNode WbsNode
        {
            get
            {
                return _wbsNode;
            }
        }

        private int _count;
        public int Count
        {
            get
            {
                return _count;
            }
        }
    }
}
